Person = {}

function Person:new (p)
   local obj = p
   if (obj == nil) then
	  obj = {name="LavenLiu", age=28, handsome=true}
   end
   self.__index = self
   return setmetatable(obj, self)
end

function Person:to_string ()
   return self.name .." : ".. self.age .." : ".. (self.handsome and "handsome" or "ugly")
end


-- example
me = Person:new()
print(me:to_string())

kf = Person:new{name="King's fucking", age=70, handsome=false}
print(kf:to_string())
